<template>
  <view class="tab-component">
    <view class="bottom-tab-box">
      <view
        class="left-tab-item"
        v-for="(item, index) in menuList"
        :key="index"
      >
        <text class="iconfont" :class="item.icon"></text>
        <text class="title">{{ item.title }}</text>
      </view>
    </view>
  </view>
</template>

<script>
import { defineComponent, reactive, toRefs } from "vue";
export default defineComponent({
  name: "",
  props: {},
  components: {},
  setup() {
    const data = reactive({
      menuList: [
        { icon: "icon-31daifahuo", title: "待付款" },
        { icon: "icon-31daishouhuo", title: "待收货" },
        { icon: "icon-31daifukuan", title: "待使用" },
        { icon: "icon-31daipingjia", title: "待评价" },
        { icon: "icon-tuikuantuihuo", title: "退换/售后" },
        { icon: "icon-31huiyuanqia", title: "会员卡" },
        { icon: "icon-31jifen", title: "积分" },
        { icon: "icon-31hongbao", title: "红包" },
      ],
    });
    return {
      ...toRefs(data),
    };
  },
});
</script>

<style scoped lang="less">
.tab-component {
  display: flex;
  flex-direction: column;
  padding: 20rpx 0;
  background: #fff;
  .bottom-tab-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    // grid-template-rows: repeat(2, 100rpx);
    column-gap: 0px;
    row-gap: 10px;
    width: 100%;
    .left-tab-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      .iconfont {
        font-size: 60upx;
      }
      .title {
        margin-top: 10rpx;
        font-size: 26rpx;
        font-weight: 300;
      }
    }
  }
}
</style>
